import "./navtop.css"
import back from "../assets/images/back.png"
function NavTop(title){
    // console.log(title);
    let a=title.title
    // console.log(this.props);
    // let title =title
    // let { title } =this.props
    function toback(){
        window.history.back(-1)
    }
    return (
        <div className="navigation">
            <div className="btop">
                <div className="time">
                    9:40
                </div>
            </div>
            <div className="bbom">
                <div className="back">
                    <img src={back} alt=""  onClick={()=>toback()} />
                </div>
                <div className="title">
                    {a}
                </div>
            </div>
        </div>
    )
}

export default NavTop